package com.py.framework.service.impl;

import com.py.framework.dao.FeedbackApiDao;
import com.py.framework.service.FeedbackApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 联合奖惩反馈插件serviceImpl
 */
@Service
public class FeedbackApiServiceImpl implements FeedbackApiService {

    @Autowired
    private FeedbackApiDao feedbackApiDao;

    @Override
    public Long selectUserId(String username, String password) {
        return feedbackApiDao.selectUserId(username, password);
    }

    @Override
    public LinkedHashMap getUserInfo(String userId) {
        return feedbackApiDao.selectUserInfoByUserId(userId);
    }
}
